/*
 * Copyright (c) Huawei Technologies Co., Ltd. 2020.
 * Description: for memdevchk to use some variables and functions in
 *              drivers/char/mem.c, so extern them.
 * Author: lijiahuan
 * Create: 2020-12-21
 */

#ifndef __RTOS_DEVMEM_H_
#define __RTOS_DEVMEM_H_
#include <linux/fs.h>
#include <linux/sched.h>
#include <linux/vmalloc.h>

#ifdef CONFIG_RTOS_KBOX
#include <linux/set_kbox_region.h>
extern int mmap_kbox_region_id;
extern unsigned int sysctl_dev_mem_tracer_log_size;
extern int proc_dev_mem_tracer_log_size(struct ctl_table *table, int write,
					void __user *buffer,
					size_t *lenp, loff_t *ppos);
#endif
extern int tracer_devmem_enabled;

extern void __mmap_mem_tracer(const struct file *filep,
				unsigned long long pa_start,
				unsigned long long pa_end,
				unsigned long va_start, unsigned long va_end);
extern void mmap_mem_cetartlb_tracer(struct file *filep, unsigned long addr,
				unsigned long size, unsigned long pfn);
#endif

